package com.rocketmq.listener;

import org.apache.rocketmq.spring.annotation.ConsumeMode;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(
        topic = "jumpTopic",
        consumerGroup = "test-jump-consumer-group",
        consumeThreadNumber = 40,
        consumeMode = ConsumeMode.CONCURRENTLY // 并发模式
)
public class EJumpListener implements RocketMQListener<String> {


    @Override
    public void onMessage(String s) {
        System.out.println("我是消费者" + s);
    }
}

